package com.kitty.mybatis.mybatisv1.mapping;

import jdk.nashorn.internal.ir.ThrowNode;

import javax.sql.DataSource;

/**
 * @Description
 * @Author SHEN
 * @Date 2020/10/21
 */
public class KittyEnvironment {

    private final String id;

    private final DataSource dataSource;

    public KittyEnvironment(String id, DataSource dataSource) {
        if(id == null){
            throw new IllegalArgumentException("id不能为空");
        }
        /*if(dataSource == null){
            throw new IllegalArgumentException("datasource不能为空");
        }*/
        this.id = id;
        this.dataSource = dataSource;
    }
}
